<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>角色主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<%@ include file="/WEB-INF/common.jsp"%>

<link href="${path }/resources/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="${path }/resources/css/animate.css" rel="stylesheet">
<link href="${path }/resources/css/style.css?v=4.1.0" rel="stylesheet">

<!--dataTables css样式-->
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/jquery.dataTables.min.css">
<!--DataTables button扩展-->
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/buttons.dataTables.min.css">
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/form.css">

</head>
<body class="gray-bg" style="">
<jsp:include page="/WEB-INF/loginCheck.jsp" />
	<div>
		<h1 style="margin-left:20px">查看资质证书</h1>
	</div>
	<hr>
	<!--添加的表单  -->
	<div id="" barclass="panel-body" style="margin-top: 30px">

		<div class="form-group">
				<div class="col-md-6 col-sm-6 col-xs-12">
					<form action="${path }/Enterprise/down.htm" method="get">
						<input type="hidden" name="id" value="${content.id}">
						<c:if test="${content.certificatePicture== null}"><label>未上传图片，无法下载</label></c:if>
						<c:if test="${content.certificatePicture!= null}"><input type="submit" id="down_btn" value="下载"></c:if>								        
					</form>
				</div>
			</div>

			<div class="form-group">
				<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-1" style="margin-top:15px">
					<a href="${path }/Enterprise/queryByRole.htm" class="btn btn-primary">返回</a>
				</div>
			</div>

	</div>
	
  	<!--表格  -->
 	<div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 30px">
	

	</div>
 
 

		

	
	

	
	

	
	<!-- Peity-->
	<script src="${path }/resources/js/plugins/peity/jquery.peity.min.js"></script>
	
	<!-- Bootstrap table-->
	<script src="${path }/resources/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="${path }/resources/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

	<!-- 自定义js-->
	<script src="${path }/resources/js/content.js?v=1.0.0"></script>
	
	<!-- jQuery Validation plugin javascript-->
    <script src="${path }/resources/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${path }/resources/js/plugins/validate/messages_zh.min.js"></script>
   
   	<!-- jQuery form  -->
    <script src="${path }/resources/js/jquery.form.min.js"></script>
    
    <!-- layer javascript -->
    <script src="${path }/resources/js/plugins/layer/layer.min.js"></script>
    
    
	<script type="text/javascript">

	/* function down(){
		var id = ${content.id};
		$.ajax({      	       
	            url: "/firefighting/Enterprise/down.htm",
	            type: 'get',
	            data: {id: id},
	            dataType: "json",
             traditional: true,//属性在这里设置
             cache: false,
	            success: function (flag) {
	            	if(flag == true){
	            		alert("下载成功");
	            	}else{
	            		alert("下载失败，暂无图片！");
	            	}
	            	
	            },
	            error: function (data) {
	                alert("下载失败");
	            }
	        });
	} */
	</script>

</body>
</html>